package com.sakura.bean;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * @author Sakura
 * @Date 2023-02-22 17:00
 */
@Component
public class Dog implements InitializingBean, DisposableBean {

    public Dog(){
        System.out.println("dog....constructor");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("doy......destroy");

    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("dog.....afterPropertiesSet");
    }
}
